package com.qf.cloud.service1.feign;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.qf.cloud2203.domain.constants.Constants;
import com.qf.cloud2203.domain.entity.Vote;
import com.qf.cloud2203.domain.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.nio.charset.StandardCharsets;
import java.util.Date;
import java.util.concurrent.TimeUnit;

@FeignClient("VOTE")
public interface VoteClient {
    @PostMapping("/vote/dovote")
    ResultVo dovote(
            @RequestParam("phone")String phone,
            @RequestParam("cadidateId") Integer cadidateId,
            @RequestHeader("token") String token);




}
